class Nav{ 
	push(url){
        uni.navigateTo({
            url: url,
            animationType: 'pop-in',
            animationDuration: 200
        });
    }
    back(delta){
        uni.navigateBack({
            delta: delta || 1,
            animationType: 'pop-out',
            animationDuration: 200
        });
    }
    redirect(url){
        uni.redirectTo({
            url: url
        });
    }
    reLaunch(url){
        uni.reLaunch({
            url: url
        });
    }
    switch(url){
        uni.switchTab({
            url: url
        }); 
    }
 }
 
 export default new Nav();